﻿{% extends 'base.html' %}

{%block extra_head %}

<title>管理后台</title>
<style type='text/css'>
    .section{
        padding:0 0 1em;
    }
    .section h2{
        border-bottom:1px dashed silver;
    }
    form.status textarea{
        width:80%;
        height:50px;
    }
</style>
{% endblock %}

{% block content %}
<div class='section'>
    <h2>发表微博</h2>
    <form class='model status' method='post' action='/mblog'>
        <p>
        <label for='id_m_content'>内容</label>
        <textarea name='content' id='id_m_content'></textarea>
        </p>
        <input class='submit' type='submit' value='提交'></input>
    </form>
</div>
<div class='section'>
    <h2>博客信息</h2>
<form class='model' method='post' action='/admin/blog'>
    {{ blog.as_p }}
    <input class='submit' type='submit' value='修改'></input>
</form>
</div>

<div class='section'>
    <h2>作者信息</h2>
<form class='model' method='post' action='/admin/author'>
    {{ author.as_p }}
    <input class='submit' type='submit' value='修改'></input>
</form>
</div>
{% endblock %}
